
const user = {
    namespaced:true, //重点有了命名空间
    state: {
        username:""
    },
    getters: {
        
    },
    mutations: {
        // 存入权限
        setName(state,val){
            state.username = val
            // console.log(state.username );
        },
        // 取权限
        getMenu(state){
            return state.username   
            
        }
    },
    actions: {
    },
    modules: {
    }
}
export default user